/**
 * Created by wlh on 16/3/10.
 */

var path = require("path");

module.exports = [{
    entry: ["./src/game/index.jsx"],
    output: {
        path: path.join(__dirname, "build"),
        filename: "game.js"
    },
    module: {
        rules: [
            {
                test: /\.css$/,
                use: [
                    'style-loader',
                    'css-loader',
                ]
            },
            {
                test: /\.jsx$/,
                use: [
                    "jsx-loader",
                    'babel-loader?{presets:["react", "es2015"]}',
                ]
            },
        ]
    }
}]